package cn.liit.weixin.message.model.resp;

import com.thoughtworks.xstream.annotations.XStreamAlias;

import cn.liit.weixin.message.type.RespMessageType;

/**
 * 语音消息
 * @author boqi.zhang
 *
 */
@XStreamAlias("xml")
public class VoiceMessage extends RespBaseMessage{
	
	private Voice Voice;//语音消息模型

	public VoiceMessage(Voice voice) {
		super(RespMessageType.RESP_MESSAGE_TYPE_VOICE.getType());
		Voice = voice;
	}

	public Voice getVoice() {
		return Voice;
	}

	public void setVoice(Voice voice) {
		Voice = voice;
	}
	@Override
	public String toString() {
		return "VoiceMessage [Voice=" + Voice + "]";
	}

	public static class Voice {
		
		private String MediaId;	//通过素材管理接口上传多媒体文件，得到的id

		public Voice() {
			super();
		}

		public Voice(String mediaId) {
			super();
			MediaId = mediaId;
		}

		public String getMediaId() {
			return MediaId;
		}

		public void setMediaId(String mediaId) {
			MediaId = mediaId;
		}

		@Override
		public String toString() {
			return "Voice [MediaId=" + MediaId + "]";
		}
		
	}
}
